<template>
<h1>El-选择器组件</h1>
<el-select v-model="city" placeholder="请选择一个你喜欢的城市" style="width: 50%;">
  <el-option value="bj" label="北京"></el-option>
  <el-option value="sh" label="上海"></el-option>
  <el-option value="jn" label="济南"></el-option>
  <el-option value="wh" label="武汉"></el-option>
</el-select>
  <h4>你选择的城市是:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city=ref('');
</script>

<style scoped>

</style>